<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>支付确认</title>
<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="description" content="支付确认 状态：${model.payModelInfo.resultCode}" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<style type="text/css" rel="stylesheet">
			body{background:#55565a; padding: 0;margin: 0;color:#fff; font:22px Arial,"Avenir LT 35 Light"; overflow: hidden;}
			#vc_window { padding: 2em 10px; }
			#table1 { border: none; border-collapse: collapse; height:100%; width: 100%;}
			#table1 th { text-align: right; padding: 10px 5px 10px 0; font-size: 24px;font-weight: normal; vertical-align: top; width: 5em;}
			#table1 td { font-size: 24px; padding: 10px 0; vertical-align: top; word-break: break-all; }
			#table1 td.s18 { color: #f00; font-size: 20px; padding-top: 20px;}
			#table1 td button { width: 100px; font-size: 18px; height: 40px; border-radius: 5px;  }
			
		</style>
		<script type="text/javascript">
			function cancel(){
				javascript:payment.cancel('${model.partnerOrder}','${model.payModelInfo.flag}');
			}
		</script>
</head>

<body>
<div id="vc_window">
<table id="table1" align="center"> 
			<c:if test="${model.payModelInfo.flag =='T'}">
				<tr>
					<th><c:out value="订单号："/></th>
					<td><c:out value="${model.partnerOrder}"/></td>
				</tr>
			</c:if>
			<tr>
				<th><c:out value="购买商品："/></th>
				<td><c:out value="${model.appProductDesc}"/></td>
			</tr>
			<tr>
				<th><c:out value="商品价格："/></th>
				<td><c:out value="${model.payAmount}"/>元</td>
			</tr>
			<tr>
			    <c:if test="${model.payModelInfo.flag =='F'}">
					<td align="center" colspan="2" class="s18"><c:out value="${model.detail}"/></td>
                </c:if>
				<c:if test="${model.payModelInfo.flag =='T'}">
					<td align="center" colspan="2"  class="s18"><c:out value="可以支付,请按确定支付"/></td>
				</c:if>
			</tr>
			<tr>
			  <td colspan="2" align="center">&nbsp;</td>
    </tr>
			<tr>
				<td colspan="2" align="center">
                   <button onClick="javascript:payment.ok('${model.payModelInfoXml}')">确定</button>
                   <button onClick="cancel();">取消</button>
				</td>
			</tr>
		</table>
</div>
</body>
</html>
